<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------


Route::group('admin',[
    'login.do' => 'admin/login/doLogin',
    'logout.do' => 'admin/login/logout',
    'login' => 'admin/login/login',
    'home' => 'admin/index/home',
    'upload' => 'admin/index/upload',

    'admin.edit.password' => 'admin/admin/editPassword',
    'admin.edit.password.do' => 'admin/admin/doEditPassword',

    'get.product.list' => 'admin/product/getList',
    'product.edit' => 'admin/product/edit',
    'product.edit.do' => 'admin/product/doEdit',
    'product.add' => 'admin/product/add',
    'product.add.do' => 'admin/product/doAdd',
    'product.del' => 'admin/product/del',


    'data' => 'admin/data/getList',
    'get.user.list' => 'admin/user/getList',

    'get.channel.list' => 'admin/channel/getList',
    'channel.edit' => 'admin/channel/edit',
    'channel.edit.do' => 'admin/channel/doEdit',
    'channel.add' => 'admin/channel/add',
    'channel.add.do' => 'admin/channel/doAdd',
    'channel.del' => 'admin/channel/del',

    'get.product.data.list' => 'admin/data/getList',
    'channel.get.data.list' => 'admin/data/channelDataList',

]);

Route::group('h5',[
    'jump.item' => 'h5/home/jumpItem',
    'login' => 'h5/home/login',
    'login.do' => 'h5/home/doLogin',
    'send.sms.code' => 'h5/sms/send',
    'home' => 'h5/home/index',
    'my' => 'h5/home/my',
]);

return [

];
